# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=perl-data-munge
epoch=1
pkgver=0.10
pkgrel=2
pkgdesc="Various utility functions"
arch=('any')
license=('PerlArtistic')
url="https://metacpan.org/release/Data-Munge"
depends=('perl')
checkdepends=('perl-test2-suite')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/M/MA/MAUKE/Data-Munge-$pkgver.tar.gz")
sha512sums=('50cd7e9cb448cb09b2cc6ba4a52f1a688fb2a4901a97366754fb0a2afc0a64bb291408791755d62c04cb8c6fd7ccd97f9b55b93b1696cd01efd3ff8ec95dc797')

build() {
  cd Data-Munge-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd Data-Munge-$pkgver
  make test
}

package() {
  cd Data-Munge-$pkgver
  make DESTDIR="$pkgdir" install
}
